MyGame.s8 = function (game) {



};


MyGame.s8.prototype = {
    create: function () {

        var that = this;

        console.log('s8-教室')

        game.bg = game.add.image(0, 0, 's8_bg');


        game.time.events.add(Phaser.Timer.SECOND * 2, function(){
            GameUI.touch(350, 830, function () {
                game.touch1.kill();
                game.touch2.kill();
    
                
                game.add.tween(game.bg.scale).to({ x: 3, y: 3 }, 2000, Phaser.Easing.Cubic.Out, true, 0)
                game.add.tween(game.bg).to({ x: '-630', y: '-1850' }, 2000, Phaser.Easing.Cubic.Out, true, 0).onComplete.add(function () {
                    
                    game.state.start('s8_1');
                })
    
                GameUI.scenesfadeOut(2000,0)
    
                
            })
        }, this);


        





        GameUI.cutscenes()







    },




    update: function () {



    },



    render: function () {
        /*game.obstacles.forEach(function(item){
            game.debug.body(item);
        })
        game.debug.body(game.player);*/
    }
};

